﻿#region  文件信息
// ---------------------------------------------------------------------------------------
// <copyright file="AdminYzAttribute.cs" company="">
// 作者：李帅伦
// </copyright>
// <summary>
// 类型简介：
// 类型详细：AdminYzAttribute.cs
// 创建时间：2015-03-11 9:43
// 修改时间：2015-03-11 9:43
// </summary>
// ---------------------------------------------------------------------------------------
#endregion

namespace Ema.Filters
{
    /// <summary>
    /// 继承
    /// </summary>
    public class JichengValidateAttribute : LoginValidateAttribute
    {
        public JichengValidateAttribute()
        {
            this.Roles = new[] { "2" };
            this.ConName = "admin";
        }
    }

    /// <summary>
    /// 微信用户
    /// </summary>
    public class WxValidateAttribute : LoginValidateAttribute
    {
        public WxValidateAttribute()
        {
            this.Roles = new[] { "3" };
            this.ConName = "wx";
        }
    }

    /// <summary>
    /// 微信用户授权
    /// </summary>
    public class WxscopeValidateAttribute : LoginValidateAttribute
    {
        public WxscopeValidateAttribute()
        {
            this.Roles = new[] { "3" };
            this.ConName = "wx";
            this.ActionName = "login1";
        }
    }
    /// <summary>
    /// 后台
    /// </summary>
    public class AdminValidateAttribute : LoginValidateAttribute
    {
        public AdminValidateAttribute()
        {
            this.Roles = new[] { "1" };
            this.ConName = "admin";
        }
    }
}